home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.event;
-
- import com.sun.java.swing.table.TableModel;
- import java.util.EventObject;
-
- public class TableModelEvent extends EventObject {
- public static final int INSERT = 1;
- public static final int UPDATE = 0;
- public static final int DELETE = -1;
- public static final int HEADER_ROW = -1;
- public static final int ALL_COLUMNS = -1;
- protected int type;
- protected int firstRow;
- protected int lastRow;
- protected int column;
-
- public TableModelEvent(TableModel source) {
- this(source, 0, Integer.MAX_VALUE, -1, 0);
- }
-
- public TableModelEvent(TableModel source, int row) {
- this(source, row, row, -1, 0);
- }
-
- public TableModelEvent(TableModel source, int firstRow, int lastRow) {
- this(source, firstRow, lastRow, -1, 0);
- }
-
- public TableModelEvent(TableModel source, int firstRow, int lastRow, int column) {
- this(source, firstRow, lastRow, column, 0);
- }
-
- public TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type) {
- super(source);
- this.firstRow = firstRow;
- this.lastRow = lastRow;
- this.column = column;
- this.type = type;
- }
-
- public int getColumn() {
- return this.column;
- }
-
- public int getFirstRow() {
- return this.firstRow;
- }
-
- public int getLastRow() {
- return this.lastRow;
- }
-
- public int getType() {
- return this.type;
- }
- }
-